package funnytrails;

import org.apache.wicket.core.request.handler.BookmarkablePageRequestHandler;
import org.apache.wicket.core.request.handler.PageProvider;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.IRequestHandler;

public class Home extends WebPage
{
    /** */
    private static final long serialVersionUID = 1L;

    /**
     * Constructor
     */
    public Home()
    {
        IRequestHandler topFrameHandler = new BookmarkablePageRequestHandler(new PageProvider(
            TopFrame.class));
        ExampleFrame topFrame = new ExampleFrame("topFrame", topFrameHandler);
        add(topFrame);

        IRequestHandler bodyFrameHandler = new BookmarkablePageRequestHandler(new PageProvider(
            BodyFrame.class));
        ExampleFrame bodyFrame = new ExampleFrame("bodyFrame", bodyFrameHandler);
        add(bodyFrame);
    }
}